package xyz.mumu233.robot.util;

import org.springframework.beans.factory.annotation.Value;
import xyz.mumu233.robot.enums.MasterStatusEnum;

import java.io.BufferedInputStream;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;

/**
 * @Author mumu
 * @create 2019/4/27 11:46
 */
public class ConfigUtil {

    public static Properties properties;

    public static MasterStatusEnum statusEnum = MasterStatusEnum.ONLINE;
    private static final String CONFIGURL = "src/main/resources/config.properties";
    static {
        try {
            properties = new Properties();
            InputStream in = new BufferedInputStream(new FileInputStream(CONFIGURL));
            properties.load(in);
        } catch (IOException e) {
            e.printStackTrace();
        }
    }

}
